package service.containsas;

import relations.Associate;
import relations.belongsTo;
import relations.contains;
import relations.containsas;
import dao.AlbumDAO;
import dao.AssociateDAO;
import dao.RecordDuplicateException;
import dao.belongsToDAO;
import dao.containsDAO;
import dao.containsasDAO;
import entities.Customer;
import entities.User;
import entities.Album;
import entities.Order;



public class containsasServiceInMemory implements containsasService {

	public containsasServiceInMemory(){
		
	}
	
	public static containsasService newInstance(){
		return new containsasServiceInMemory();
	}
	
	/**
	 * Finds a Album based on the Album id.
	 * @param userid - user id
	 * @return the instance of the Album
	 */
	
	public containsas findContainsas(Long albumID, Long songID, String sample) {
		containsasDAO db =  containsasDAO.getInstance();
		containsas result = null;
		result = db.findContainsas(albumID, songID, sample);
		return result;
		

	}
	
	
	/**
	 * Adds a new Album to the system.
	 * @param obj - the Album instance to add
	 */
	
	public void addContainsas(containsas obj) throws RecordDuplicateException{
		containsasDAO db = containsasDAO.getInstance();	
		db.addContainsas(obj);
		return;
	}

	public containsas findContainsas(Long product_id, String orderID,
			float price, int qty) {
		// TODO Auto-generated method stub
		return null;
	}

	











}
